﻿<%@ Control Language="C#" AutoEventWireup="true" Codebehind="TabManagement.ascx.cs"
    Inherits="Portal.Administrator.Tabs.TabManagement" %>
<%@ Register Assembly="NCS.WebControl" Namespace="NCS.WebControls" TagPrefix="cc1" %>
<%@ Register Assembly="ComponentArt.Web.UI" Namespace="ComponentArt.Web.UI" TagPrefix="componentart" %>
<%@ Register Assembly="System.Web.Extensions" Namespace="System.Web.UI" TagPrefix="asp" %>
<link href="/Administrator/Styles/treeStyle.css" rel="stylesheet" type="text/css">
<table border="0" cellpadding="0" cellspacing="0" height="100%">
    <tr>
        <td colspan="3">
            <asp:Label ID="lblPortal" runat="server" Text="Cổng :" meta:resourcekey="lblPortalResource1"></asp:Label>&nbsp;<asp:DropDownList ID="dropSysPortal" runat="server" DataTextField="Portal_Name"
                DataValueField="PortalID" AutoPostBack="True" Width="278px" meta:resourcekey="dropSysPortalResource1">
            </asp:DropDownList>
            <asp:Label ID="lblUpdateStatus" runat="server" Font-Bold="True" ForeColor="Blue"
                meta:resourcekey="lblUpdateStatusResource1"></asp:Label></td>
    </tr>
    <tr>
        <td class="Contentbody_Left" valign="top" width="300">
          <asp:UpdatePanel ID="upanelTabManagement1" runat="server" UpdateMode="Conditional"
                RenderMode="Inline">
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="btnUpdate" EventName="Click" />
                    <asp:AsyncPostBackTrigger ControlID="btnAddNew" EventName="Click" />
                    <asp:AsyncPostBackTrigger ControlID="btnDelete" EventName="Click" />
                </Triggers>
                <ContentTemplate>
                    <componentart:TreeView ID="tvwCmds" runat="server" AutoPostBackOnSelect="True" CausesValidation="False"
                        ClientScriptLocation="/JScripts/componentart_webui_client/" CollapseImageUrl="/Administrator/Images/TreeView/exp.gif"
                        ExpandCollapseImageHeight="11" ExpandCollapseImageWidth="14" ExpandImageUrl="/Administrator/Images/TreeView/col.gif"
                        Height="100%" HoverNodeCssClass="HoverTreeNode" NodeCssClass="TreeNode" NodeIndent="15" NodeRowCssClass="TreeNodeRow" NoExpandImageUrl="/Administrator/Images/TreeView/noexp.gif"
                        OnNodeSelected="tvwCmds_NodeSelected" PreloadCurrentPath="True" SelectedNodeCssClass="SelectedTreeNode"
                        Width="300px" meta:resourcekey="tvwCmdsResource1">
                    </componentart:TreeView>
                </ContentTemplate>
            </asp:UpdatePanel>
        </td>
        <td width="5">
        </td>
        <td valign="top">
           <asp:UpdatePanel ID="uppanelTabManagement2" runat="server" UpdateMode="Conditional"
                RenderMode="Inline">
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="tvwCmds" EventName="NodeSelected" />
                    <asp:AsyncPostBackTrigger ControlID="btnEmpty" EventName="Click" />
                </Triggers>
                <ContentTemplate>
                    <table class="InputBox" width="100%">
                        <tr>
                            <td width="25%" style="height: 26px">
                                <asp:Label ID="lblID" runat="server" Text="ID" meta:resourcekey="lblIDResource1"></asp:Label></td>
                            <td style="height: 26px">
                                <asp:TextBox ID="txtID" runat="server" Enabled="False" Width="42px" meta:resourcekey="txtIDResource1"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblName" runat="server" Text="Name" meta:resourcekey="lblNameResource1"></asp:Label></td>
                            <td>
                                <asp:TextBox ID="txtName" runat="server" Width="224px" meta:resourcekey="txtNameResource1"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtName"
                                    Display="Dynamic" ErrorMessage="(*)" meta:resourcekey="RequiredFieldValidator2Resource1"></asp:RequiredFieldValidator></td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblTitle" runat="server" Text="Tiêu đề" meta:resourcekey="lblTitleResource1"></asp:Label></td>
                            <td>
                                <asp:TextBox ID="txtTitle" runat="server" Width="224px" meta:resourcekey="txtTitleResource1"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblDescription" runat="server" Text="Mô tả" meta:resourcekey="lblDescriptionResource1"></asp:Label></td>
                            <td>
                                <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" Width="226px" meta:resourcekey="txtDescriptionResource1"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblUrl" runat="server" Text="Url" meta:resourcekey="lblUrlResource1"></asp:Label></td>
                            <td>
                                <asp:TextBox ID="txtUrl" runat="server" Width="224px" meta:resourcekey="txtUrlResource1"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblLayout" runat="server" Text="Layout" meta:resourcekey="lblLayoutResource1"></asp:Label></td>
                            <td>
                                <asp:DropDownList ID="dropPath" runat="server" Width="254px" meta:resourcekey="dropPathResource1">
                                </asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblParent" runat="server" Text="Cha" meta:resourcekey="lblParentResource1"></asp:Label></td>
                            <td>
                                <asp:DropDownList ID="dropParent" runat="server" Width="254px" meta:resourcekey="dropParentResource1">
                                </asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblOrder" runat="server" Text="Thứ tự" meta:resourcekey="lblOrderResource1"></asp:Label></td>
                            <td>
                                <asp:DropDownList ID="dropIndex" runat="server" Width="88px" meta:resourcekey="dropIndexResource1">
                                </asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblPortal1" runat="server" Text="Cổng:" meta:resourcekey="lblPortal1Resource1"></asp:Label></td>
                            <td>
                                <asp:DropDownList ID="dropPortal" runat="server" DataTextField="Portal_Name" DataValueField="PortalID" meta:resourcekey="dropPortalResource1">
                                </asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td style="height: 22px">
                                <asp:Label ID="lblActive" runat="server" Text="Hoạt động" meta:resourcekey="lblActiveResource1"></asp:Label></td>
                            <td style="height: 22px">
                                <asp:CheckBox ID="chkEnable" runat="server" Checked="True" CssClass="input" meta:resourcekey="chkEnableResource1" /></td>
                        </tr>
                        <tr>
                            <td style="height: 22px">
                                <asp:Label ID="lblVisible" runat="server" Text="Hiện thị" meta:resourcekey="lblVisibleResource1"></asp:Label></td>
                            <td style="height: 22px">
                                <asp:CheckBox ID="chkVisble" runat="server" Checked="True" CssClass="input" meta:resourcekey="chkVisbleResource1" /></td>
                        </tr>
                    </table>
              </ContentTemplate>
            </asp:UpdatePanel>
            &nbsp; &nbsp;<br />
            <table id="Table2" border="0" cellpadding="3" cellspacing="0" class="UpdateBox" height="35"
                width="100%">
                <tr>
                    <td align="center">
                        <cc1:ButtonRoleEdit ID="btnUpdate" runat="server" CssClass="Button" OnClick="btnUpdate_Click"
                            Text="Cập nhật" />&nbsp;<cc1:ButtonRoleAdd ID="btnAddNew" runat="server" CssClass="Button"
                                OnClick="btnAddNew_Click" Text="Thêm mới" />
                        <asp:Button ID="btnTabLayout" runat="server" CssClass="Button" OnClick="btnTabLayout_Click"
                            Text="Giao diện" Width="68px" meta:resourcekey="btnTabLayoutResource1" />
                        <cc1:ButtonRoleDelete ID="btnDelete" runat="server" CssClass="Button" OnClick="btnDelete_Click"
                            Text="Xóa" />
                        <asp:Button ID="btnEmpty" runat="server" CausesValidation="False" CssClass="Button"
                            OnClick="btnEmpty_Click" Text="Hủy" Width="77px" meta:resourcekey="btnEmptyResource1" /></td>
                </tr>
            </table>
        </td>
    </tr>
</table>
